﻿import mx.utils.Delegate;
class ComboV3 {
	var i_, enabled, vars;
	function ComboV3(mc, vars) {
		enabled = vars.enabled;
		vars = vars;
		var num = ((vars.num != null) ? vars.num : 4);
		trace('num -> '+num);
		trace('_height -> '+mc.popup.page.ori._height );
		trace('99num -> '+mc.popup.page.ori._height*num);
		
		i_ = new ComboClassV1.input(mc.input, '--请选择--', {width:vars.width, css:'font:黑体'});
		var l_ = new ComboClassV1.list(mc.popup, vars.data, {num:num, width:vars.width-4, offset:2, Esel:vars.onSelect, Eover:vars.onSelectOver, Eout:vars.onSelectOut});
		var p_ = new ComboClassV1.Popup(mc.popup, mc.msk, {width:vars.width-4, height:mc.popup.page.ori._height*num, onClose:vars.onClose, onOpen:vars.onOpen});
		var c_ = new ComboClassV1.Combo(mc.input, mc.popup);
		//
		ComboClassV1.Util.bind(i_, p_, l_, c_);
	}
	function set ss(aa) {
		trace(aa+''+enabled);
		if (enabled) {
			i_.ss = aa;
		}
	}
}
